home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / rexx / 652 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: simba.cnsnet.com!usenet
  2. From: davmp@schema.com   (Dave Peterson)
  3. Newsgroups: comp.lang.rexx
  4. Subject: Re: Timed pause in REXX
  5. Date: 1 Feb 1996 11:21:39 GMT
  6. Organization: Sine Qua Non, Incorporated
  7. Distribution: inet
  8. Message-ID: <4eq7o3$p4i@simba.cnsnet.com>
  9. References: <4einh6$scv@ramp2.tir.com>
  10. Reply-To: davmp@sinequanon.com (Dave Peterson)
  11. NNTP-Posting-Host: davmp.cnsnet.com
  12. X-Newsreader: IBM NewsReader/2 v1.9d - NLS
  13.  
  14. In <4einh6$scv@ramp2.tir.com>, os2@tir.com (Jason Gottschalk) writes:
  15. >In message <4e9cf4$2ev@anarchy.io.com> - desantom@io.com (Mike j DeSanto) write
  16. >s:
  17. >-|
  18. >-|    I need a Rexx command to pause a program for a given number of seconds.
  19.  
  20. [snip]
  21.  
  22. >-|Entertainment magazine.  I am using OS/2 Warp and VX-REXX.
  23.  
  24. [snip]
  25.  
  26. >Try  Call SysSleep Seconds
  27.  
  28. Why not use VX-REXX's timer object - it allows much more
  29. precise control (millisecond intervals although the docs say
  30. OS/2 doesn't guarantee the accuracy with times less than
  31. 250 milliseconds.  You can set it for 10 seconds with a value
  32. of 10000.
  33.  
  34. The benefit of this over SysSleep is that the timer method
  35. allows your program to be doing other things (processing
  36. user input for instance) while you are waiting.  A message
  37. to a Trigger function is posted to your message queue
  38. when the time is up.  Calling SysSleep keeps your program
  39. at that point in the code until the specified time is up.
  40.  
  41. =====================================
  42. Dave Peterson <davmp@sinequanon.com>
  43. Sine Qua Non, Incorporated
  44.  
  45.